package com.cyn.aframework.http;

public class PS {

    public static void main(String[] args) {
        String url = "http://192.168.109.132:18080/platform/successKilled/inserUser";
        String hostname = url.split("/")[2];
        int port = 80;
        if (hostname.contains(":")) {
            final String[] arr = hostname.split(":");
            hostname = arr[0];
            port = Integer.parseInt(arr[1]);
        }

        System.out.println(port);
    }
}
